﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

// Token: 0x020002C8 RID: 712
[Serializable]
public class CharFileInfoCoordinateFemale : global::CharFileInfoCoordinate
{
	// Token: 0x06001154 RID: 4436 RVA: 0x0008C9EC File Offset: 0x0008ABEC
	public CharFileInfoCoordinateFemale()
	{
		for (int i = 0; i < Enum.GetNames(typeof(global::CharDefine.CoordinateType)).Length; i++)
		{
			global::CharFileInfoClothesFemale value = new global::CharFileInfoClothesFemale();
			this.dictClothesInfo[(global::CharDefine.CoordinateType)i] = value;
		}
	}

	// Token: 0x06001155 RID: 4437 RVA: 0x0008CA34 File Offset: 0x0008AC34
	public override bool SaveSub(BinaryWriter bw)
	{
		int value = this.dictClothesInfo.Count((KeyValuePair<global::CharDefine.CoordinateType, global::CharFileInfoClothes> v) => v.Value != null);
		bw.Write(value);
		foreach (KeyValuePair<global::CharDefine.CoordinateType, global::CharFileInfoClothes> keyValuePair in from v in this.dictClothesInfo
		where v.Value != null
		select v)
		{
			bw.Write((int)keyValuePair.Key);
			keyValuePair.Value.SaveWithoutPNG(bw);
		}
		return true;
	}

	// Token: 0x06001156 RID: 4438 RVA: 0x0008CAF4 File Offset: 0x0008ACF4
	public override bool LoadSub(BinaryReader br, int coordinateVer)
	{
		this.dictClothesInfo.Clear();
		int num = br.ReadInt32();
		for (int i = 0; i < num; i++)
		{
			int key = br.ReadInt32();
			global::CharFileInfoClothesFemale charFileInfoClothesFemale = new global::CharFileInfoClothesFemale();
			charFileInfoClothesFemale.LoadWithoutPNG(br);
			this.dictClothesInfo[(global::CharDefine.CoordinateType)key] = charFileInfoClothesFemale;
		}
		return true;
	}
}
